if(!widget) widget = {};
if(!widget.preferences) widget.preferences = (function() {
	var items = {};
	return {
		setItem: function(key, value) {
			items[key] = value;
		},
		getItem: function(key) {
			return items[key];
		}
	};
})();
